<!DOCTYPE html>
<html>
<head>
	<meta charset="UTF-8">
	<meta name="viewport" content="maximum-scale=1.0,minimum-scale=1.0,user-scalable=0,width=device-width,initial-scale=1.0"/>
	<title></title>
	<link rel="stylesheet" type="text/css" href="../css/api.css" />
    <link rel="stylesheet" type="text/css" href="../css/common.css" />
	<!-- <link rel="stylesheet" type="text/css" href="../css/idangerous.swiper.css"> -->

	<style>
		html, body {width: 100%;min-height: 100%;background: #fff;}
		.h80 {height: 80px;}
		.h40 {height: 40px;}
		.h20 {height: 20px;}
    	.h10 {height: 10px;background: #fff;}
	    .cnt {padding: 7px 10px 10px 0; display: box; display: -webkit-box; min-height: 78px;  background-size: auto 1px; }
        .wrap {-webkit-box-flex: 1; }
		.wrap2 {display: table; height: 88px; width: 100%; }
		.content {-webkit-box-flex: 1; box-flex: 1; display: table-cell; vertical-align: middle; }
		.shopname {color: #333; /*line-height: 16px;*/ font-size: 1.3em; font-weight: bold; padding-bottom: 2px; padding-top: 3px; display: inline-block;}
        .info {word-break:break-all;margin-top: 19px; margin-bottom: 10px; color: blue; font-size: 1em; position: relative; line-height: 15px;}
        .symbol {float:left; color: #666;padding:5px 0px;}
		.price {float:right;color: #666;padding:5px 0px;}
		.distance {-webkit-box-flex: 1; box-flex: 1; -ms-box-flex: 1; -ms-flex: 1; text-align: right; line-height: 10px; margin-top: 10px;  float: right;}		
        /***每日要情列表****/
        .home-tuan-list { background-color: #fff;width:96%; margin:0 2%; border:1px solid #D4D3D3;-moz-border-radius: 10px; -webkit-border-radius: 10px;border-radius:10px;}
		.home-tuan-list .item {position: relative; display: block; padding-left: 10px;}
		
		.home-tuan-list .pic {margin-right: 10px; background: center; }
		.home-tuan-list img { margin-top: 7px; margin-bottom: 5px; border-radius: 3px; }
		
		.home-tuan-list .content {-webkit-box-flex: 1; box-flex: 1; display: table-cell; vertical-align: middle; }
		.home-tuan-list .shopname {color: #333; /*line-height: 16px;*/ font-size: 1.2em; font-weight:bold;  min-height: 10px; padding-bottom: 2px; padding-top: 3px; display: inline-block;}
		.home-tuan-list .title {color: #6f6c6c; line-height: 22px; font-size: 1.1em;  padding-top: 3px;  }
		.home-tuan-list .hot-title {margin-bottom: 8px; }
		.home-tuan-list .hot-subtitle {margin-bottom: 9px; }
 
		.home-tuan-list .infos {word-break:break-all;margin-top: 19px; margin-bottom: 10px; color: blue; font-size: 1em; position: relative; line-height: 15px; padding-bottom:20px; }
		 .Fix:after {display: block; content: ''; height: 0; clear: both; }

    /****统一列表*****/
	    .main_content {position: relative; display: block; padding-left: 10px; border-bottom: 1px solid #e0e0e0;}	 		 
		.main_content .suggestion {background: #e0e0e0;color: #666; line-height: 22px; font-size: 1em; margin: 15px 0; padding-top: 3px; -webkit-line-clamp: 2;  }
		.main_content .title>span{ color: #2E8AE0;} 
		.main_content .hot-title {margin-bottom: 8px; }
		.main_content .hot-subtitle {margin-bottom: 9px; }	 
		 
	/****舆情报告列表*****/
	   
       .right { float:right; width:10%;}
       .presshover {background-color: #FAFAFA;}
       .right>img{ float: right; width: 50px; height: 40px; vertical-align: middle; }  
		
	</style>
</head>
<body>
 	 <div class="h10"></div>	  
 	    <div id="main_content"> </div>
  <div id="divNoDataTip">
		<div id="text" style="margin-top:10px;margin-bottom:10px;width:100%;text-align: center;" class="button red" tapmode="">正在加载..</div>
	</div> 
	<div class="h10"></div>
<input id="pageIndex" type="hidden" value="0"/>
<input id="access_token" type="hidden" value=""/>
<input id="admin_id" type="hidden" value=""/>
<!--------上次操作菜单--------->
<input id="deal_status" type="hidden" value="0"/>
</body>
<script type="text/javascript" src="../script/api.js"></script>
<script type="text/javascript" src="../script/api.data.js"></script>
<script type="text/javascript" src="../script/jquery.md5.js"></script>
<script type="text/javascript" src="../script/jquery.min.js"></script>
<script type="text/javascript" src="../script/echarts-all.js"></script>
<script>
      apiready = function(){ 
            //在页面制定位置输出接口所需的access_token和admin_id
            get_sign();   
            
            var category = api.pageParam.category;  
            var mspecial_id = api.pageParam.mspecial_id;                        
             //等待两秒传递完access_token和admin_id后执行初始化数据
            setTimeout(function(){list(category,"refresh",mspecial_id);},500);
            
            /*****************上拉加载和下拉刷新****************************/
            var param = {}; 
                param.loadingImgae = 'widget://image/refresh.png';  //定义刷新小箭头的图片 
                param.bgColor = '#fff';  //定义下拉刷新区域的背景 
                param.textColor = '#000';  //定义下拉刷新提示文字的颜色 
                param.textDown = '下拉刷新...'; //定义下拉刷新文字 
                param.textUp = '松开刷新...'; //定义松开刷新文字 
                param.showTime = true;  //定义是否显示最后一次刷新时间
             
            if(category != "statistics"){    
                //下拉刷新
              api.setRefreshHeaderInfo(
               param,function(ret, err){  //refresh event callback 
                    $("#main_content").html("");
        	        $("#pageIndex").val(0); 
        	        $("#divNoDataTip").html("<div style='margin-top:10px;margin-bottom:10px;width:100%;text-align: center;' class='button red' tapmode=''>正在加载..</div>");
                    switch(category){
                        case "mryq":
                        list_mryq("refresh");
                        break;
                        case "management":
                        list("management","refresh");
                        break;
                        case "collection":
                        list_collection("refresh");
                        break;
                        case "hot_spot":
                        list_rdzz("refresh");
                        break;
                        case "specialDynamic":
                        specialMenu(api.pageParam.mspecial_id,"refresh");
                        break;
                        case "report":
                        Get_topmenu("report","refresh");
                        break;
                        case "classification":
                        Get_topmenu("classification","refresh");
                        break;                       
                        default:
                        break;
                    }
                    api.refreshHeaderLoadDone();
               });  
              
              //上拉加载
              api.addEventListener({
                     name:"scrolltobottom"
              },function(ret,err){
                     switch(category){
                        case "mryq":
                        list_mryq("load");
                        break;
                        case "management":
                        list("management","load");
                        break;
                        case "collection":
                        list_collection("load");
                        break;
                        case "hot_spot":
                        list_rdzz("load");
                        break;
                        case "specialDynamic":
                        specialMenu(api.pageParam.mspecial_id,"load");
                        break;
                        case "report":
                        Get_topmenu("report","load");
                        break;
                        case "classification":
                        Get_topmenu("classification","load");
                        break; 
                        default:
                        break;
                    }
                     api.parseTapmode();
              });  
             /*****************上拉加载和下拉刷新****************************/  
          }       
      }  
    
    
    //热点追踪专题分类
    function openSpecial(message_id,title){
         
           api.openWin({
            name: 'specialWin',
            url: './specialWin.html',
            delay: 300,
            bounces: false,
            vScrollBarEnabled:false,
            hScrollBarEnabled:true,
            pageParam: {message_id:message_id,title:title}
        });    
    }  
      
   //查看文章详情
	function openDetail(message_id)
	{       		    
	      if(isNaN(message_id)){
	          //var status = "status";  
	          if('ios'==api.systemType){
                	api.openApp({
					    iosUrl: message_id
					},function(ret,err){
					     
					});
                }
                if('android'==api.systemType){
                	api.openApp({
					    androidPkg: 'android.intent.action.VIEW',
					    
					    uri: message_id
					},function(ret,err){ 
					});
                }	         	          
	      }else{
	          
              api.openWin({
			   name: 'detailWin',
			   url: "./detailWin.html",
			   pageParam: {message_id:message_id,status:status},
			   bounces: false,
			   scaleEnabled:false,
			   delay:300
		   });
	      }  		 
	}
	
	
	//下载报告
	function openDown(message_id){
	     openfile(message_id);
	}


 
</script>
</html>